﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;
using System.Xml.Linq;

namespace Devtm.Contracts.V1
{

    public class Constantes
    {
        public const string Namespace = "http://devtm.fr/Contracts/Configuration/2012/01/";
    }

    [ServiceContract(Namespace = Constantes.Namespace)]
    public interface IConfigurationContract
    {

        GetResponse Get(string[] context);

        void Set(string context, XElement content);

    }

    
    public class GetResponse
    {

        [MessageBodyMember(Namespace = Constantes.Namespace)]
        public XElement Content { get; set; }

        [MessageBodyMember(Namespace = Constantes.Namespace)]
        public string[] context { get; set; }

    }

}
